package com.crm.service.impl.finance.paymentRecordManager;

import com.crm.dao.mapper.customMapper.finance.paymentRecordManager.PaymentRecordCustomMapper;
import com.crm.model.qo.finance.paymentRecordManager.PaymentRecordQO;
import com.crm.model.vo.finance.paymentRecordManager.PaymentRecordExportVO;
import com.crm.model.vo.finance.paymentRecordManager.PaymentRecordVO;
import com.crm.service.finance.paymentRecordManager.PaymentRecordDbService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ Author ：pym
 * @ Date   ：2021/8/19 10:03
 */
@Service
public class PaymentRecordDbServiceImpl implements PaymentRecordDbService {

    @Autowired
    PaymentRecordCustomMapper paymentRecordCustomMapper;

    /**
     * 财务 到款记录
     * @Author pym
     * @Date  2021/8/19 10:33
     * @param order -排序
     * @param paymentRecordQO -查询条件
     * @return {@link {java.util.List<com.crm.model.vo.finance.paymentRecordManager.PaymentRecordVO>}}
     */
    @Override
    public List<PaymentRecordVO> selectPaymentRecordList(String order, PaymentRecordQO paymentRecordQO) {
        return paymentRecordCustomMapper.selectPaymentRecordList(order,paymentRecordQO);
    }

    /**
     * 财务 导出到款记录
     * @Author pym
     * @Date  2021/8/19 15:16
     * @param paymentRecordQO -查询条件
     * @return {@link {java.util.List<com.crm.model.vo.finance.paymentRecordManager.PaymentRecordExportVO>}}
     */
    @Override
    public List<PaymentRecordExportVO> selectPaymentRecordExportVOList(PaymentRecordQO paymentRecordQO) {
        return paymentRecordCustomMapper.selectPaymentRecordExportVOList(paymentRecordQO);
    }
}
